package com.csvw.skr.basic.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Peng on 2017/08/01.
 * 岗位信息-显示
 */
@Entity
@Table(name = "csvw_skr_basic_position")
public class Position {

    /**
     * 岗位编号
     */
    @Id
    @Column(name = "pk_code", length = 20, nullable = false)
    private String code;

    /**
     * 岗位名称
     */
    @Column(name = "name", length = 50)
    private String name;


    /**
     * 岗位描述
     */
    @Column(name = "description", length = 200)
    private String description;


    /**
     * 数据是否有效
     */
    @Column(nullable=false, columnDefinition="bit default 1")
    private boolean active;

    /**
     * 数据创建时间
     */
    private Date created;

    /**
     * 数据更新时间
     */
    private Date updated;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }
}
